#include "NamedColors.hpp"

#include <map>

namespace TurtleModule {

// genreated from the table X11 named colors
static std::pair<QString, QColor> namedColors[] = {
    std::make_pair<QString, QColor>("snow", QColor(255,250,250)),
    std::make_pair<QString, QColor>("ghost white", QColor(248,248,255)),
    std::make_pair<QString, QColor>("GhostWhite", QColor(248,248,255)),
    std::make_pair<QString, QColor>("white smoke", QColor(245,245,245)),
    std::make_pair<QString, QColor>("WhiteSmoke", QColor(245,245,245)),
    std::make_pair<QString, QColor>("gainsboro", QColor(220,220,220)),
    std::make_pair<QString, QColor>("floral white", QColor(255,250,240)),
    std::make_pair<QString, QColor>("FloralWhite", QColor(255,250,240)),
    std::make_pair<QString, QColor>("old lace", QColor(253,245,230)),
    std::make_pair<QString, QColor>("OldLace", QColor(253,245,230)),
    std::make_pair<QString, QColor>("linen", QColor(250,240,230)),
    std::make_pair<QString, QColor>("antique white", QColor(250,235,215)),
    std::make_pair<QString, QColor>("AntiqueWhite", QColor(250,235,215)),
    std::make_pair<QString, QColor>("papaya whip", QColor(255,239,213)),
    std::make_pair<QString, QColor>("PapayaWhip", QColor(255,239,213)),
    std::make_pair<QString, QColor>("blanched almond", QColor(255,235,205)),
    std::make_pair<QString, QColor>("BlanchedAlmond", QColor(255,235,205)),
    std::make_pair<QString, QColor>("bisque", QColor(255,228,196)),
    std::make_pair<QString, QColor>("peach puff", QColor(255,218,185)),
    std::make_pair<QString, QColor>("PeachPuff", QColor(255,218,185)),
    std::make_pair<QString, QColor>("navajo white", QColor(255,222,173)),
    std::make_pair<QString, QColor>("NavajoWhite", QColor(255,222,173)),
    std::make_pair<QString, QColor>("moccasin", QColor(255,228,181)),
    std::make_pair<QString, QColor>("cornsilk", QColor(255,248,220)),
    std::make_pair<QString, QColor>("ivory", QColor(255,255,240)),
    std::make_pair<QString, QColor>("lemon chiffon", QColor(255,250,205)),
    std::make_pair<QString, QColor>("LemonChiffon", QColor(255,250,205)),
    std::make_pair<QString, QColor>("seashell", QColor(255,245,238)),
    std::make_pair<QString, QColor>("honeydew", QColor(240,255,240)),
    std::make_pair<QString, QColor>("mint cream", QColor(245,255,250)),
    std::make_pair<QString, QColor>("MintCream", QColor(245,255,250)),
    std::make_pair<QString, QColor>("azure", QColor(240,255,255)),
    std::make_pair<QString, QColor>("alice blue", QColor(240,248,255)),
    std::make_pair<QString, QColor>("AliceBlue", QColor(240,248,255)),
    std::make_pair<QString, QColor>("lavender", QColor(230,230,250)),
    std::make_pair<QString, QColor>("lavender blush", QColor(255,240,245)),
    std::make_pair<QString, QColor>("LavenderBlush", QColor(255,240,245)),
    std::make_pair<QString, QColor>("misty rose", QColor(255,228,225)),
    std::make_pair<QString, QColor>("MistyRose", QColor(255,228,225)),
    std::make_pair<QString, QColor>("white", QColor(255,255,255)),
      std::make_pair<QString, QColor>("black", QColor(0,0,0)),
     std::make_pair<QString, QColor>("dark slate gray", QColor(47,79,79)),
     std::make_pair<QString, QColor>("DarkSlateGray", QColor(47,79,79)),
     std::make_pair<QString, QColor>("dark slate grey", QColor(47,79,79)),
     std::make_pair<QString, QColor>("DarkSlateGrey", QColor(47,79,79)),
    std::make_pair<QString, QColor>("dim gray", QColor(105,105,105)),
    std::make_pair<QString, QColor>("DimGray", QColor(105,105,105)),
    std::make_pair<QString, QColor>("dim grey", QColor(105,105,105)),
    std::make_pair<QString, QColor>("DimGrey", QColor(105,105,105)),
    std::make_pair<QString, QColor>("slate gray", QColor(112,128,144)),
    std::make_pair<QString, QColor>("SlateGray", QColor(112,128,144)),
    std::make_pair<QString, QColor>("slate grey", QColor(112,128,144)),
    std::make_pair<QString, QColor>("SlateGrey", QColor(112,128,144)),
    std::make_pair<QString, QColor>("light slate gray", QColor(119,136,153)),
    std::make_pair<QString, QColor>("LightSlateGray", QColor(119,136,153)),
    std::make_pair<QString, QColor>("light slate grey", QColor(119,136,153)),
    std::make_pair<QString, QColor>("LightSlateGrey", QColor(119,136,153)),
    std::make_pair<QString, QColor>("gray", QColor(190,190,190)),
    std::make_pair<QString, QColor>("grey", QColor(190,190,190)),
    std::make_pair<QString, QColor>("light grey", QColor(211,211,211)),
    std::make_pair<QString, QColor>("LightGrey", QColor(211,211,211)),
    std::make_pair<QString, QColor>("light gray", QColor(211,211,211)),
    std::make_pair<QString, QColor>("LightGray", QColor(211,211,211)),
     std::make_pair<QString, QColor>("midnight blue", QColor(25,25,112)),
     std::make_pair<QString, QColor>("MidnightBlue", QColor(25,25,112)),
      std::make_pair<QString, QColor>("navy", QColor(0,0,128)),
      std::make_pair<QString, QColor>("navy blue", QColor(0,0,128)),
      std::make_pair<QString, QColor>("NavyBlue", QColor(0,0,128)),
    std::make_pair<QString, QColor>("cornflower blue", QColor(100,149,237)),
    std::make_pair<QString, QColor>("CornflowerBlue", QColor(100,149,237)),
     std::make_pair<QString, QColor>("dark slate blue", QColor(72,61,139)),
     std::make_pair<QString, QColor>("DarkSlateBlue", QColor(72,61,139)),
    std::make_pair<QString, QColor>("slate blue", QColor(106,90,205)),
    std::make_pair<QString, QColor>("SlateBlue", QColor(106,90,205)),
    std::make_pair<QString, QColor>("medium slate blue", QColor(123,104,238)),
    std::make_pair<QString, QColor>("MediumSlateBlue", QColor(123,104,238)),
    std::make_pair<QString, QColor>("light slate blue", QColor(132,112,255)),
    std::make_pair<QString, QColor>("LightSlateBlue", QColor(132,112,255)),
      std::make_pair<QString, QColor>("medium blue", QColor(0,0,205)),
      std::make_pair<QString, QColor>("MediumBlue", QColor(0,0,205)),
     std::make_pair<QString, QColor>("royal blue", QColor(65,105,225)),
     std::make_pair<QString, QColor>("RoyalBlue", QColor(65,105,225)),
      std::make_pair<QString, QColor>("blue", QColor(0,0,255)),
     std::make_pair<QString, QColor>("dodger blue", QColor(30,144,255)),
     std::make_pair<QString, QColor>("DodgerBlue", QColor(30,144,255)),
      std::make_pair<QString, QColor>("deep sky blue", QColor(0,191,255)),
      std::make_pair<QString, QColor>("DeepSkyBlue", QColor(0,191,255)),
    std::make_pair<QString, QColor>("sky blue", QColor(135,206,235)),
    std::make_pair<QString, QColor>("SkyBlue", QColor(135,206,235)),
    std::make_pair<QString, QColor>("light sky blue", QColor(135,206,250)),
    std::make_pair<QString, QColor>("LightSkyBlue", QColor(135,206,250)),
     std::make_pair<QString, QColor>("steel blue", QColor(70,130,180)),
     std::make_pair<QString, QColor>("SteelBlue", QColor(70,130,180)),
    std::make_pair<QString, QColor>("light steel blue", QColor(176,196,222)),
    std::make_pair<QString, QColor>("LightSteelBlue", QColor(176,196,222)),
    std::make_pair<QString, QColor>("light blue", QColor(173,216,230)),
    std::make_pair<QString, QColor>("LightBlue", QColor(173,216,230)),
    std::make_pair<QString, QColor>("powder blue", QColor(176,224,230)),
    std::make_pair<QString, QColor>("PowderBlue", QColor(176,224,230)),
    std::make_pair<QString, QColor>("pale turquoise", QColor(175,238,238)),
    std::make_pair<QString, QColor>("PaleTurquoise", QColor(175,238,238)),
      std::make_pair<QString, QColor>("dark turquoise", QColor(0,206,209)),
      std::make_pair<QString, QColor>("DarkTurquoise", QColor(0,206,209)),
     std::make_pair<QString, QColor>("medium turquoise", QColor(72,209,204)),
     std::make_pair<QString, QColor>("MediumTurquoise", QColor(72,209,204)),
     std::make_pair<QString, QColor>("turquoise", QColor(64,224,208)),
      std::make_pair<QString, QColor>("cyan", QColor(0,255,255)),
    std::make_pair<QString, QColor>("light cyan", QColor(224,255,255)),
    std::make_pair<QString, QColor>("LightCyan", QColor(224,255,255)),
     std::make_pair<QString, QColor>("cadet blue", QColor(95,158,160)),
     std::make_pair<QString, QColor>("CadetBlue", QColor(95,158,160)),
    std::make_pair<QString, QColor>("medium aquamarine", QColor(102,205,170)),
    std::make_pair<QString, QColor>("MediumAquamarine", QColor(102,205,170)),
    std::make_pair<QString, QColor>("aquamarine", QColor(127,255,212)),
      std::make_pair<QString, QColor>("dark green", QColor(0,100,0)),
      std::make_pair<QString, QColor>("DarkGreen", QColor(0,100,0)),
     std::make_pair<QString, QColor>("dark olive green", QColor(85,107,47)),
     std::make_pair<QString, QColor>("DarkOliveGreen", QColor(85,107,47)),
    std::make_pair<QString, QColor>("dark sea green", QColor(143,188,143)),
    std::make_pair<QString, QColor>("DarkSeaGreen", QColor(143,188,143)),
     std::make_pair<QString, QColor>("sea green", QColor(46,139,87)),
     std::make_pair<QString, QColor>("SeaGreen", QColor(46,139,87)),
     std::make_pair<QString, QColor>("medium sea green", QColor(60,179,113)),
     std::make_pair<QString, QColor>("MediumSeaGreen", QColor(60,179,113)),
     std::make_pair<QString, QColor>("light sea green", QColor(32,178,170)),
     std::make_pair<QString, QColor>("LightSeaGreen", QColor(32,178,170)),
    std::make_pair<QString, QColor>("pale green", QColor(152,251,152)),
    std::make_pair<QString, QColor>("PaleGreen", QColor(152,251,152)),
      std::make_pair<QString, QColor>("spring green", QColor(0,255,127)),
      std::make_pair<QString, QColor>("SpringGreen", QColor(0,255,127)),
    std::make_pair<QString, QColor>("lawn green", QColor(124,252,0)),
    std::make_pair<QString, QColor>("LawnGreen", QColor(124,252,0)),
      std::make_pair<QString, QColor>("green", QColor(0,255,0)),
    std::make_pair<QString, QColor>("chartreuse", QColor(127,255,0)),
      std::make_pair<QString, QColor>("medium spring green", QColor(0,250,154)),
      std::make_pair<QString, QColor>("MediumSpringGreen", QColor(0,250,154)),
    std::make_pair<QString, QColor>("green yellow", QColor(173,255,47)),
    std::make_pair<QString, QColor>("GreenYellow", QColor(173,255,47)),
     std::make_pair<QString, QColor>("lime green", QColor(50,205,50)),
     std::make_pair<QString, QColor>("LimeGreen", QColor(50,205,50)),
    std::make_pair<QString, QColor>("yellow green", QColor(154,205,50)),
    std::make_pair<QString, QColor>("YellowGreen", QColor(154,205,50)),
     std::make_pair<QString, QColor>("forest green", QColor(34,139,34)),
     std::make_pair<QString, QColor>("ForestGreen", QColor(34,139,34)),
    std::make_pair<QString, QColor>("olive drab", QColor(107,142,35)),
    std::make_pair<QString, QColor>("OliveDrab", QColor(107,142,35)),
    std::make_pair<QString, QColor>("dark khaki", QColor(189,183,107)),
    std::make_pair<QString, QColor>("DarkKhaki", QColor(189,183,107)),
    std::make_pair<QString, QColor>("khaki", QColor(240,230,140)),
    std::make_pair<QString, QColor>("pale goldenrod", QColor(238,232,170)),
    std::make_pair<QString, QColor>("PaleGoldenrod", QColor(238,232,170)),
    std::make_pair<QString, QColor>("light goldenrod yellow", QColor(250,250,210)),
    std::make_pair<QString, QColor>("LightGoldenrodYellow", QColor(250,250,210)),
    std::make_pair<QString, QColor>("light yellow", QColor(255,255,224)),
    std::make_pair<QString, QColor>("LightYellow", QColor(255,255,224)),
    std::make_pair<QString, QColor>("yellow", QColor(255,255,0)),
    std::make_pair<QString, QColor>("gold", QColor(255,215,0)),
    std::make_pair<QString, QColor>("light goldenrod", QColor(238,221,130)),
    std::make_pair<QString, QColor>("LightGoldenrod", QColor(238,221,130)),
    std::make_pair<QString, QColor>("goldenrod", QColor(218,165,32)),
    std::make_pair<QString, QColor>("dark goldenrod", QColor(184,134,11)),
    std::make_pair<QString, QColor>("DarkGoldenrod", QColor(184,134,11)),
    std::make_pair<QString, QColor>("rosy brown", QColor(188,143,143)),
    std::make_pair<QString, QColor>("RosyBrown", QColor(188,143,143)),
    std::make_pair<QString, QColor>("indian red", QColor(205,92,92)),
    std::make_pair<QString, QColor>("IndianRed", QColor(205,92,92)),
    std::make_pair<QString, QColor>("saddle brown", QColor(139,69,19)),
    std::make_pair<QString, QColor>("SaddleBrown", QColor(139,69,19)),
    std::make_pair<QString, QColor>("sienna", QColor(160,82,45)),
    std::make_pair<QString, QColor>("peru", QColor(205,133,63)),
    std::make_pair<QString, QColor>("burlywood", QColor(222,184,135)),
    std::make_pair<QString, QColor>("beige", QColor(245,245,220)),
    std::make_pair<QString, QColor>("wheat", QColor(245,222,179)),
    std::make_pair<QString, QColor>("sandy brown", QColor(244,164,96)),
    std::make_pair<QString, QColor>("SandyBrown", QColor(244,164,96)),
    std::make_pair<QString, QColor>("tan", QColor(210,180,140)),
    std::make_pair<QString, QColor>("chocolate", QColor(210,105,30)),
    std::make_pair<QString, QColor>("firebrick", QColor(178,34,34)),
    std::make_pair<QString, QColor>("brown", QColor(165,42,42)),
    std::make_pair<QString, QColor>("dark salmon", QColor(233,150,122)),
    std::make_pair<QString, QColor>("DarkSalmon", QColor(233,150,122)),
    std::make_pair<QString, QColor>("salmon", QColor(250,128,114)),
    std::make_pair<QString, QColor>("light salmon", QColor(255,160,122)),
    std::make_pair<QString, QColor>("LightSalmon", QColor(255,160,122)),
    std::make_pair<QString, QColor>("orange", QColor(255,165,0)),
    std::make_pair<QString, QColor>("dark orange", QColor(255,140,0)),
    std::make_pair<QString, QColor>("DarkOrange", QColor(255,140,0)),
    std::make_pair<QString, QColor>("coral", QColor(255,127,80)),
    std::make_pair<QString, QColor>("light coral", QColor(240,128,128)),
    std::make_pair<QString, QColor>("LightCoral", QColor(240,128,128)),
    std::make_pair<QString, QColor>("tomato", QColor(255,99,71)),
    std::make_pair<QString, QColor>("orange red", QColor(255,69,0)),
    std::make_pair<QString, QColor>("OrangeRed", QColor(255,69,0)),
    std::make_pair<QString, QColor>("red", QColor(255,0,0)),
    std::make_pair<QString, QColor>("hot pink", QColor(255,105,180)),
    std::make_pair<QString, QColor>("HotPink", QColor(255,105,180)),
    std::make_pair<QString, QColor>("deep pink", QColor(255,20,147)),
    std::make_pair<QString, QColor>("DeepPink", QColor(255,20,147)),
    std::make_pair<QString, QColor>("pink", QColor(255,192,203)),
    std::make_pair<QString, QColor>("light pink", QColor(255,182,193)),
    std::make_pair<QString, QColor>("LightPink", QColor(255,182,193)),
    std::make_pair<QString, QColor>("pale violet red", QColor(219,112,147)),
    std::make_pair<QString, QColor>("PaleVioletRed", QColor(219,112,147)),
    std::make_pair<QString, QColor>("maroon", QColor(176,48,96)),
    std::make_pair<QString, QColor>("medium violet red", QColor(199,21,133)),
    std::make_pair<QString, QColor>("MediumVioletRed", QColor(199,21,133)),
    std::make_pair<QString, QColor>("violet red", QColor(208,32,144)),
    std::make_pair<QString, QColor>("VioletRed", QColor(208,32,144)),
    std::make_pair<QString, QColor>("magenta", QColor(255,0,255)),
    std::make_pair<QString, QColor>("violet", QColor(238,130,238)),
    std::make_pair<QString, QColor>("plum", QColor(221,160,221)),
    std::make_pair<QString, QColor>("orchid", QColor(218,112,214)),
    std::make_pair<QString, QColor>("medium orchid", QColor(186,85,211)),
    std::make_pair<QString, QColor>("MediumOrchid", QColor(186,85,211)),
    std::make_pair<QString, QColor>("dark orchid", QColor(153,50,204)),
    std::make_pair<QString, QColor>("DarkOrchid", QColor(153,50,204)),
    std::make_pair<QString, QColor>("dark violet", QColor(148,0,211)),
    std::make_pair<QString, QColor>("DarkViolet", QColor(148,0,211)),
    std::make_pair<QString, QColor>("blue violet", QColor(138,43,226)),
    std::make_pair<QString, QColor>("BlueViolet", QColor(138,43,226)),
    std::make_pair<QString, QColor>("purple", QColor(160,32,240)),
    std::make_pair<QString, QColor>("medium purple", QColor(147,112,219)),
    std::make_pair<QString, QColor>("MediumPurple", QColor(147,112,219)),
    std::make_pair<QString, QColor>("thistle", QColor(216,191,216)),
    std::make_pair<QString, QColor>("snow1", QColor(255,250,250)),
    std::make_pair<QString, QColor>("snow2", QColor(238,233,233)),
    std::make_pair<QString, QColor>("snow3", QColor(205,201,201)),
    std::make_pair<QString, QColor>("snow4", QColor(139,137,137)),
    std::make_pair<QString, QColor>("seashell1", QColor(255,245,238)),
    std::make_pair<QString, QColor>("seashell2", QColor(238,229,222)),
    std::make_pair<QString, QColor>("seashell3", QColor(205,197,191)),
    std::make_pair<QString, QColor>("seashell4", QColor(139,134,130)),
    std::make_pair<QString, QColor>("AntiqueWhite1", QColor(255,239,219)),
    std::make_pair<QString, QColor>("AntiqueWhite2", QColor(238,223,204)),
    std::make_pair<QString, QColor>("AntiqueWhite3", QColor(205,192,176)),
    std::make_pair<QString, QColor>("AntiqueWhite4", QColor(139,131,120)),
    std::make_pair<QString, QColor>("bisque1", QColor(255,228,196)),
    std::make_pair<QString, QColor>("bisque2", QColor(238,213,183)),
    std::make_pair<QString, QColor>("bisque3", QColor(205,183,158)),
    std::make_pair<QString, QColor>("bisque4", QColor(139,125,107)),
    std::make_pair<QString, QColor>("PeachPuff1", QColor(255,218,185)),
    std::make_pair<QString, QColor>("PeachPuff2", QColor(238,203,173)),
    std::make_pair<QString, QColor>("PeachPuff3", QColor(205,175,149)),
    std::make_pair<QString, QColor>("PeachPuff4", QColor(139,119,101)),
    std::make_pair<QString, QColor>("NavajoWhite1", QColor(255,222,173)),
    std::make_pair<QString, QColor>("NavajoWhite2", QColor(238,207,161)),
    std::make_pair<QString, QColor>("NavajoWhite3", QColor(205,179,139)),
    std::make_pair<QString, QColor>("NavajoWhite4", QColor(139,121,94)),
    std::make_pair<QString, QColor>("LemonChiffon1", QColor(255,250,205)),
    std::make_pair<QString, QColor>("LemonChiffon2", QColor(238,233,191)),
    std::make_pair<QString, QColor>("LemonChiffon3", QColor(205,201,165)),
    std::make_pair<QString, QColor>("LemonChiffon4", QColor(139,137,112)),
    std::make_pair<QString, QColor>("cornsilk1", QColor(255,248,220)),
    std::make_pair<QString, QColor>("cornsilk2", QColor(238,232,205)),
    std::make_pair<QString, QColor>("cornsilk3", QColor(205,200,177)),
    std::make_pair<QString, QColor>("cornsilk4", QColor(139,136,120)),
    std::make_pair<QString, QColor>("ivory1", QColor(255,255,240)),
    std::make_pair<QString, QColor>("ivory2", QColor(238,238,224)),
    std::make_pair<QString, QColor>("ivory3", QColor(205,205,193)),
    std::make_pair<QString, QColor>("ivory4", QColor(139,139,131)),
    std::make_pair<QString, QColor>("honeydew1", QColor(240,255,240)),
    std::make_pair<QString, QColor>("honeydew2", QColor(224,238,224)),
    std::make_pair<QString, QColor>("honeydew3", QColor(193,205,193)),
    std::make_pair<QString, QColor>("honeydew4", QColor(131,139,131)),
    std::make_pair<QString, QColor>("LavenderBlush1", QColor(255,240,245)),
    std::make_pair<QString, QColor>("LavenderBlush2", QColor(238,224,229)),
    std::make_pair<QString, QColor>("LavenderBlush3", QColor(205,193,197)),
    std::make_pair<QString, QColor>("LavenderBlush4", QColor(139,131,134)),
    std::make_pair<QString, QColor>("MistyRose1", QColor(255,228,225)),
    std::make_pair<QString, QColor>("MistyRose2", QColor(238,213,210)),
    std::make_pair<QString, QColor>("MistyRose3", QColor(205,183,181)),
    std::make_pair<QString, QColor>("MistyRose4", QColor(139,125,123)),
    std::make_pair<QString, QColor>("azure1", QColor(240,255,255)),
    std::make_pair<QString, QColor>("azure2", QColor(224,238,238)),
    std::make_pair<QString, QColor>("azure3", QColor(193,205,205)),
    std::make_pair<QString, QColor>("azure4", QColor(131,139,139)),
    std::make_pair<QString, QColor>("SlateBlue1", QColor(131,111,255)),
    std::make_pair<QString, QColor>("SlateBlue2", QColor(122,103,238)),
    std::make_pair<QString, QColor>("SlateBlue3", QColor(105,89,205)),
     std::make_pair<QString, QColor>("SlateBlue4", QColor(71,60,139)),
     std::make_pair<QString, QColor>("RoyalBlue1", QColor(72,118,255)),
     std::make_pair<QString, QColor>("RoyalBlue2", QColor(67,110,238)),
     std::make_pair<QString, QColor>("RoyalBlue3", QColor(58,95,205)),
     std::make_pair<QString, QColor>("RoyalBlue4", QColor(39,64,139)),
      std::make_pair<QString, QColor>("blue1", QColor(0,0,255)),
      std::make_pair<QString, QColor>("blue2", QColor(0,0,238)),
      std::make_pair<QString, QColor>("blue3", QColor(0,0,205)),
      std::make_pair<QString, QColor>("blue4", QColor(0,0,139)),
     std::make_pair<QString, QColor>("DodgerBlue1", QColor(30,144,255)),
     std::make_pair<QString, QColor>("DodgerBlue2", QColor(28,134,238)),
     std::make_pair<QString, QColor>("DodgerBlue3", QColor(24,116,205)),
     std::make_pair<QString, QColor>("DodgerBlue4", QColor(16,78,139)),
     std::make_pair<QString, QColor>("SteelBlue1", QColor(99,184,255)),
     std::make_pair<QString, QColor>("SteelBlue2", QColor(92,172,238)),
     std::make_pair<QString, QColor>("SteelBlue3", QColor(79,148,205)),
     std::make_pair<QString, QColor>("SteelBlue4", QColor(54,100,139)),
      std::make_pair<QString, QColor>("DeepSkyBlue1", QColor(0,191,255)),
      std::make_pair<QString, QColor>("DeepSkyBlue2", QColor(0,178,238)),
      std::make_pair<QString, QColor>("DeepSkyBlue3", QColor(0,154,205)),
      std::make_pair<QString, QColor>("DeepSkyBlue4", QColor(0,104,139)),
    std::make_pair<QString, QColor>("SkyBlue1", QColor(135,206,255)),
    std::make_pair<QString, QColor>("SkyBlue2", QColor(126,192,238)),
    std::make_pair<QString, QColor>("SkyBlue3", QColor(108,166,205)),
     std::make_pair<QString, QColor>("SkyBlue4", QColor(74,112,139)),
    std::make_pair<QString, QColor>("LightSkyBlue1", QColor(176,226,255)),
    std::make_pair<QString, QColor>("LightSkyBlue2", QColor(164,211,238)),
    std::make_pair<QString, QColor>("LightSkyBlue3", QColor(141,182,205)),
     std::make_pair<QString, QColor>("LightSkyBlue4", QColor(96,123,139)),
    std::make_pair<QString, QColor>("SlateGray1", QColor(198,226,255)),
    std::make_pair<QString, QColor>("SlateGray2", QColor(185,211,238)),
    std::make_pair<QString, QColor>("SlateGray3", QColor(159,182,205)),
    std::make_pair<QString, QColor>("SlateGray4", QColor(108,123,139)),
    std::make_pair<QString, QColor>("LightSteelBlue1", QColor(202,225,255)),
    std::make_pair<QString, QColor>("LightSteelBlue2", QColor(188,210,238)),
    std::make_pair<QString, QColor>("LightSteelBlue3", QColor(162,181,205)),
    std::make_pair<QString, QColor>("LightSteelBlue4", QColor(110,123,139)),
    std::make_pair<QString, QColor>("LightBlue1", QColor(191,239,255)),
    std::make_pair<QString, QColor>("LightBlue2", QColor(178,223,238)),
    std::make_pair<QString, QColor>("LightBlue3", QColor(154,192,205)),
    std::make_pair<QString, QColor>("LightBlue4", QColor(104,131,139)),
    std::make_pair<QString, QColor>("LightCyan1", QColor(224,255,255)),
    std::make_pair<QString, QColor>("LightCyan2", QColor(209,238,238)),
    std::make_pair<QString, QColor>("LightCyan3", QColor(180,205,205)),
    std::make_pair<QString, QColor>("LightCyan4", QColor(122,139,139)),
    std::make_pair<QString, QColor>("PaleTurquoise1", QColor(187,255,255)),
    std::make_pair<QString, QColor>("PaleTurquoise2", QColor(174,238,238)),
    std::make_pair<QString, QColor>("PaleTurquoise3", QColor(150,205,205)),
    std::make_pair<QString, QColor>("PaleTurquoise4", QColor(102,139,139)),
    std::make_pair<QString, QColor>("CadetBlue1", QColor(152,245,255)),
    std::make_pair<QString, QColor>("CadetBlue2", QColor(142,229,238)),
    std::make_pair<QString, QColor>("CadetBlue3", QColor(122,197,205)),
     std::make_pair<QString, QColor>("CadetBlue4", QColor(83,134,139)),
      std::make_pair<QString, QColor>("turquoise1", QColor(0,245,255)),
      std::make_pair<QString, QColor>("turquoise2", QColor(0,229,238)),
      std::make_pair<QString, QColor>("turquoise3", QColor(0,197,205)),
      std::make_pair<QString, QColor>("turquoise4", QColor(0,134,139)),
      std::make_pair<QString, QColor>("cyan1", QColor(0,255,255)),
      std::make_pair<QString, QColor>("cyan2", QColor(0,238,238)),
      std::make_pair<QString, QColor>("cyan3", QColor(0,205,205)),
      std::make_pair<QString, QColor>("cyan4", QColor(0,139,139)),
    std::make_pair<QString, QColor>("DarkSlateGray1", QColor(151,255,255)),
    std::make_pair<QString, QColor>("DarkSlateGray2", QColor(141,238,238)),
    std::make_pair<QString, QColor>("DarkSlateGray3", QColor(121,205,205)),
     std::make_pair<QString, QColor>("DarkSlateGray4", QColor(82,139,139)),
    std::make_pair<QString, QColor>("aquamarine1", QColor(127,255,212)),
    std::make_pair<QString, QColor>("aquamarine2", QColor(118,238,198)),
    std::make_pair<QString, QColor>("aquamarine3", QColor(102,205,170)),
     std::make_pair<QString, QColor>("aquamarine4", QColor(69,139,116)),
    std::make_pair<QString, QColor>("DarkSeaGreen1", QColor(193,255,193)),
    std::make_pair<QString, QColor>("DarkSeaGreen2", QColor(180,238,180)),
    std::make_pair<QString, QColor>("DarkSeaGreen3", QColor(155,205,155)),
    std::make_pair<QString, QColor>("DarkSeaGreen4", QColor(105,139,105)),
     std::make_pair<QString, QColor>("SeaGreen1", QColor(84,255,159)),
     std::make_pair<QString, QColor>("SeaGreen2", QColor(78,238,148)),
     std::make_pair<QString, QColor>("SeaGreen3", QColor(67,205,128)),
     std::make_pair<QString, QColor>("SeaGreen4", QColor(46,139,87)),
    std::make_pair<QString, QColor>("PaleGreen1", QColor(154,255,154)),
    std::make_pair<QString, QColor>("PaleGreen2", QColor(144,238,144)),
    std::make_pair<QString, QColor>("PaleGreen3", QColor(124,205,124)),
     std::make_pair<QString, QColor>("PaleGreen4", QColor(84,139,84)),
      std::make_pair<QString, QColor>("SpringGreen1", QColor(0,255,127)),
      std::make_pair<QString, QColor>("SpringGreen2", QColor(0,238,118)),
      std::make_pair<QString, QColor>("SpringGreen3", QColor(0,205,102)),
      std::make_pair<QString, QColor>("SpringGreen4", QColor(0,139,69)),
      std::make_pair<QString, QColor>("green1", QColor(0,255,0)),
      std::make_pair<QString, QColor>("green2", QColor(0,238,0)),
      std::make_pair<QString, QColor>("green3", QColor(0,205,0)),
      std::make_pair<QString, QColor>("green4", QColor(0,139,0)),
    std::make_pair<QString, QColor>("chartreuse1", QColor(127,255,0)),
    std::make_pair<QString, QColor>("chartreuse2", QColor(118,238,0)),
    std::make_pair<QString, QColor>("chartreuse3", QColor(102,205,0)),
     std::make_pair<QString, QColor>("chartreuse4", QColor(69,139,0)),
    std::make_pair<QString, QColor>("OliveDrab1", QColor(192,255,62)),
    std::make_pair<QString, QColor>("OliveDrab2", QColor(179,238,58)),
    std::make_pair<QString, QColor>("OliveDrab3", QColor(154,205,50)),
    std::make_pair<QString, QColor>("OliveDrab4", QColor(105,139,34)),
    std::make_pair<QString, QColor>("DarkOliveGreen1", QColor(202,255,112)),
    std::make_pair<QString, QColor>("DarkOliveGreen2", QColor(188,238,104)),
    std::make_pair<QString, QColor>("DarkOliveGreen3", QColor(162,205,90)),
    std::make_pair<QString, QColor>("DarkOliveGreen4", QColor(110,139,61)),
    std::make_pair<QString, QColor>("khaki1", QColor(255,246,143)),
    std::make_pair<QString, QColor>("khaki2", QColor(238,230,133)),
    std::make_pair<QString, QColor>("khaki3", QColor(205,198,115)),
    std::make_pair<QString, QColor>("khaki4", QColor(139,134,78)),
    std::make_pair<QString, QColor>("LightGoldenrod1", QColor(255,236,139)),
    std::make_pair<QString, QColor>("LightGoldenrod2", QColor(238,220,130)),
    std::make_pair<QString, QColor>("LightGoldenrod3", QColor(205,190,112)),
    std::make_pair<QString, QColor>("LightGoldenrod4", QColor(139,129,76)),
    std::make_pair<QString, QColor>("LightYellow1", QColor(255,255,224)),
    std::make_pair<QString, QColor>("LightYellow2", QColor(238,238,209)),
    std::make_pair<QString, QColor>("LightYellow3", QColor(205,205,180)),
    std::make_pair<QString, QColor>("LightYellow4", QColor(139,139,122)),
    std::make_pair<QString, QColor>("yellow1", QColor(255,255,0)),
    std::make_pair<QString, QColor>("yellow2", QColor(238,238,0)),
    std::make_pair<QString, QColor>("yellow3", QColor(205,205,0)),
    std::make_pair<QString, QColor>("yellow4", QColor(139,139,0)),
    std::make_pair<QString, QColor>("gold1", QColor(255,215,0)),
    std::make_pair<QString, QColor>("gold2", QColor(238,201,0)),
    std::make_pair<QString, QColor>("gold3", QColor(205,173,0)),
    std::make_pair<QString, QColor>("gold4", QColor(139,117,0)),
    std::make_pair<QString, QColor>("goldenrod1", QColor(255,193,37)),
    std::make_pair<QString, QColor>("goldenrod2", QColor(238,180,34)),
    std::make_pair<QString, QColor>("goldenrod3", QColor(205,155,29)),
    std::make_pair<QString, QColor>("goldenrod4", QColor(139,105,20)),
    std::make_pair<QString, QColor>("DarkGoldenrod1", QColor(255,185,15)),
    std::make_pair<QString, QColor>("DarkGoldenrod2", QColor(238,173,14)),
    std::make_pair<QString, QColor>("DarkGoldenrod3", QColor(205,149,12)),
    std::make_pair<QString, QColor>("DarkGoldenrod4", QColor(139,101,8)),
    std::make_pair<QString, QColor>("RosyBrown1", QColor(255,193,193)),
    std::make_pair<QString, QColor>("RosyBrown2", QColor(238,180,180)),
    std::make_pair<QString, QColor>("RosyBrown3", QColor(205,155,155)),
    std::make_pair<QString, QColor>("RosyBrown4", QColor(139,105,105)),
    std::make_pair<QString, QColor>("IndianRed1", QColor(255,106,106)),
    std::make_pair<QString, QColor>("IndianRed2", QColor(238,99,99)),
    std::make_pair<QString, QColor>("IndianRed3", QColor(205,85,85)),
    std::make_pair<QString, QColor>("IndianRed4", QColor(139,58,58)),
    std::make_pair<QString, QColor>("sienna1", QColor(255,130,71)),
    std::make_pair<QString, QColor>("sienna2", QColor(238,121,66)),
    std::make_pair<QString, QColor>("sienna3", QColor(205,104,57)),
    std::make_pair<QString, QColor>("sienna4", QColor(139,71,38)),
    std::make_pair<QString, QColor>("burlywood1", QColor(255,211,155)),
    std::make_pair<QString, QColor>("burlywood2", QColor(238,197,145)),
    std::make_pair<QString, QColor>("burlywood3", QColor(205,170,125)),
    std::make_pair<QString, QColor>("burlywood4", QColor(139,115,85)),
    std::make_pair<QString, QColor>("wheat1", QColor(255,231,186)),
    std::make_pair<QString, QColor>("wheat2", QColor(238,216,174)),
    std::make_pair<QString, QColor>("wheat3", QColor(205,186,150)),
    std::make_pair<QString, QColor>("wheat4", QColor(139,126,102)),
    std::make_pair<QString, QColor>("tan1", QColor(255,165,79)),
    std::make_pair<QString, QColor>("tan2", QColor(238,154,73)),
    std::make_pair<QString, QColor>("tan3", QColor(205,133,63)),
    std::make_pair<QString, QColor>("tan4", QColor(139,90,43)),
    std::make_pair<QString, QColor>("chocolate1", QColor(255,127,36)),
    std::make_pair<QString, QColor>("chocolate2", QColor(238,118,33)),
    std::make_pair<QString, QColor>("chocolate3", QColor(205,102,29)),
    std::make_pair<QString, QColor>("chocolate4", QColor(139,69,19)),
    std::make_pair<QString, QColor>("firebrick1", QColor(255,48,48)),
    std::make_pair<QString, QColor>("firebrick2", QColor(238,44,44)),
    std::make_pair<QString, QColor>("firebrick3", QColor(205,38,38)),
    std::make_pair<QString, QColor>("firebrick4", QColor(139,26,26)),
    std::make_pair<QString, QColor>("brown1", QColor(255,64,64)),
    std::make_pair<QString, QColor>("brown2", QColor(238,59,59)),
    std::make_pair<QString, QColor>("brown3", QColor(205,51,51)),
    std::make_pair<QString, QColor>("brown4", QColor(139,35,35)),
    std::make_pair<QString, QColor>("salmon1", QColor(255,140,105)),
    std::make_pair<QString, QColor>("salmon2", QColor(238,130,98)),
    std::make_pair<QString, QColor>("salmon3", QColor(205,112,84)),
    std::make_pair<QString, QColor>("salmon4", QColor(139,76,57)),
    std::make_pair<QString, QColor>("LightSalmon1", QColor(255,160,122)),
    std::make_pair<QString, QColor>("LightSalmon2", QColor(238,149,114)),
    std::make_pair<QString, QColor>("LightSalmon3", QColor(205,129,98)),
    std::make_pair<QString, QColor>("LightSalmon4", QColor(139,87,66)),
    std::make_pair<QString, QColor>("orange1", QColor(255,165,0)),
    std::make_pair<QString, QColor>("orange2", QColor(238,154,0)),
    std::make_pair<QString, QColor>("orange3", QColor(205,133,0)),
    std::make_pair<QString, QColor>("orange4", QColor(139,90,0)),
    std::make_pair<QString, QColor>("DarkOrange1", QColor(255,127,0)),
    std::make_pair<QString, QColor>("DarkOrange2", QColor(238,118,0)),
    std::make_pair<QString, QColor>("DarkOrange3", QColor(205,102,0)),
    std::make_pair<QString, QColor>("DarkOrange4", QColor(139,69,0)),
    std::make_pair<QString, QColor>("coral1", QColor(255,114,86)),
    std::make_pair<QString, QColor>("coral2", QColor(238,106,80)),
    std::make_pair<QString, QColor>("coral3", QColor(205,91,69)),
    std::make_pair<QString, QColor>("coral4", QColor(139,62,47)),
    std::make_pair<QString, QColor>("tomato1", QColor(255,99,71)),
    std::make_pair<QString, QColor>("tomato2", QColor(238,92,66)),
    std::make_pair<QString, QColor>("tomato3", QColor(205,79,57)),
    std::make_pair<QString, QColor>("tomato4", QColor(139,54,38)),
    std::make_pair<QString, QColor>("OrangeRed1", QColor(255,69,0)),
    std::make_pair<QString, QColor>("OrangeRed2", QColor(238,64,0)),
    std::make_pair<QString, QColor>("OrangeRed3", QColor(205,55,0)),
    std::make_pair<QString, QColor>("OrangeRed4", QColor(139,37,0)),
    std::make_pair<QString, QColor>("red1", QColor(255,0,0)),
    std::make_pair<QString, QColor>("red2", QColor(238,0,0)),
    std::make_pair<QString, QColor>("red3", QColor(205,0,0)),
    std::make_pair<QString, QColor>("red4", QColor(139,0,0)),
    std::make_pair<QString, QColor>("DeepPink1", QColor(255,20,147)),
    std::make_pair<QString, QColor>("DeepPink2", QColor(238,18,137)),
    std::make_pair<QString, QColor>("DeepPink3", QColor(205,16,118)),
    std::make_pair<QString, QColor>("DeepPink4", QColor(139,10,80)),
    std::make_pair<QString, QColor>("HotPink1", QColor(255,110,180)),
    std::make_pair<QString, QColor>("HotPink2", QColor(238,106,167)),
    std::make_pair<QString, QColor>("HotPink3", QColor(205,96,144)),
    std::make_pair<QString, QColor>("HotPink4", QColor(139,58,98)),
    std::make_pair<QString, QColor>("pink1", QColor(255,181,197)),
    std::make_pair<QString, QColor>("pink2", QColor(238,169,184)),
    std::make_pair<QString, QColor>("pink3", QColor(205,145,158)),
    std::make_pair<QString, QColor>("pink4", QColor(139,99,108)),
    std::make_pair<QString, QColor>("LightPink1", QColor(255,174,185)),
    std::make_pair<QString, QColor>("LightPink2", QColor(238,162,173)),
    std::make_pair<QString, QColor>("LightPink3", QColor(205,140,149)),
    std::make_pair<QString, QColor>("LightPink4", QColor(139,95,101)),
    std::make_pair<QString, QColor>("PaleVioletRed1", QColor(255,130,171)),
    std::make_pair<QString, QColor>("PaleVioletRed2", QColor(238,121,159)),
    std::make_pair<QString, QColor>("PaleVioletRed3", QColor(205,104,137)),
    std::make_pair<QString, QColor>("PaleVioletRed4", QColor(139,71,93)),
    std::make_pair<QString, QColor>("maroon1", QColor(255,52,179)),
    std::make_pair<QString, QColor>("maroon2", QColor(238,48,167)),
    std::make_pair<QString, QColor>("maroon3", QColor(205,41,144)),
    std::make_pair<QString, QColor>("maroon4", QColor(139,28,98)),
    std::make_pair<QString, QColor>("VioletRed1", QColor(255,62,150)),
    std::make_pair<QString, QColor>("VioletRed2", QColor(238,58,140)),
    std::make_pair<QString, QColor>("VioletRed3", QColor(205,50,120)),
    std::make_pair<QString, QColor>("VioletRed4", QColor(139,34,82)),
    std::make_pair<QString, QColor>("magenta1", QColor(255,0,255)),
    std::make_pair<QString, QColor>("magenta2", QColor(238,0,238)),
    std::make_pair<QString, QColor>("magenta3", QColor(205,0,205)),
    std::make_pair<QString, QColor>("magenta4", QColor(139,0,139)),
    std::make_pair<QString, QColor>("orchid1", QColor(255,131,250)),
    std::make_pair<QString, QColor>("orchid2", QColor(238,122,233)),
    std::make_pair<QString, QColor>("orchid3", QColor(205,105,201)),
    std::make_pair<QString, QColor>("orchid4", QColor(139,71,137)),
    std::make_pair<QString, QColor>("plum1", QColor(255,187,255)),
    std::make_pair<QString, QColor>("plum2", QColor(238,174,238)),
    std::make_pair<QString, QColor>("plum3", QColor(205,150,205)),
    std::make_pair<QString, QColor>("plum4", QColor(139,102,139)),
    std::make_pair<QString, QColor>("MediumOrchid1", QColor(224,102,255)),
    std::make_pair<QString, QColor>("MediumOrchid2", QColor(209,95,238)),
    std::make_pair<QString, QColor>("MediumOrchid3", QColor(180,82,205)),
    std::make_pair<QString, QColor>("MediumOrchid4", QColor(122,55,139)),
    std::make_pair<QString, QColor>("DarkOrchid1", QColor(191,62,255)),
    std::make_pair<QString, QColor>("DarkOrchid2", QColor(178,58,238)),
    std::make_pair<QString, QColor>("DarkOrchid3", QColor(154,50,205)),
    std::make_pair<QString, QColor>("DarkOrchid4", QColor(104,34,139)),
    std::make_pair<QString, QColor>("purple1", QColor(155,48,255)),
    std::make_pair<QString, QColor>("purple2", QColor(145,44,238)),
    std::make_pair<QString, QColor>("purple3", QColor(125,38,205)),
     std::make_pair<QString, QColor>("purple4", QColor(85,26,139)),
    std::make_pair<QString, QColor>("MediumPurple1", QColor(171,130,255)),
    std::make_pair<QString, QColor>("MediumPurple2", QColor(159,121,238)),
    std::make_pair<QString, QColor>("MediumPurple3", QColor(137,104,205)),
     std::make_pair<QString, QColor>("MediumPurple4", QColor(93,71,139)),
    std::make_pair<QString, QColor>("thistle1", QColor(255,225,255)),
    std::make_pair<QString, QColor>("thistle2", QColor(238,210,238)),
    std::make_pair<QString, QColor>("thistle3", QColor(205,181,205)),
    std::make_pair<QString, QColor>("thistle4", QColor(139,123,139)),
      std::make_pair<QString, QColor>("gray0", QColor(0,0,0)),
      std::make_pair<QString, QColor>("grey0", QColor(0,0,0)),
      std::make_pair<QString, QColor>("gray1", QColor(3,3,3)),
      std::make_pair<QString, QColor>("grey1", QColor(3,3,3)),
      std::make_pair<QString, QColor>("gray2", QColor(5,5,5)),
      std::make_pair<QString, QColor>("grey2", QColor(5,5,5)),
      std::make_pair<QString, QColor>("gray3", QColor(8,8,8)),
      std::make_pair<QString, QColor>("grey3", QColor(8,8,8)),
     std::make_pair<QString, QColor>("gray4", QColor(10,10,10)),
     std::make_pair<QString, QColor>("grey4", QColor(10,10,10)),
     std::make_pair<QString, QColor>("gray5", QColor(13,13,13)),
     std::make_pair<QString, QColor>("grey5", QColor(13,13,13)),
     std::make_pair<QString, QColor>("gray6", QColor(15,15,15)),
     std::make_pair<QString, QColor>("grey6", QColor(15,15,15)),
     std::make_pair<QString, QColor>("gray7", QColor(18,18,18)),
     std::make_pair<QString, QColor>("grey7", QColor(18,18,18)),
     std::make_pair<QString, QColor>("gray8", QColor(20,20,20)),
     std::make_pair<QString, QColor>("grey8", QColor(20,20,20)),
     std::make_pair<QString, QColor>("gray9", QColor(23,23,23)),
     std::make_pair<QString, QColor>("grey9", QColor(23,23,23)),
     std::make_pair<QString, QColor>("gray10", QColor(26,26,26)),
     std::make_pair<QString, QColor>("grey10", QColor(26,26,26)),
     std::make_pair<QString, QColor>("gray11", QColor(28,28,28)),
     std::make_pair<QString, QColor>("grey11", QColor(28,28,28)),
     std::make_pair<QString, QColor>("gray12", QColor(31,31,31)),
     std::make_pair<QString, QColor>("grey12", QColor(31,31,31)),
     std::make_pair<QString, QColor>("gray13", QColor(33,33,33)),
     std::make_pair<QString, QColor>("grey13", QColor(33,33,33)),
     std::make_pair<QString, QColor>("gray14", QColor(36,36,36)),
     std::make_pair<QString, QColor>("grey14", QColor(36,36,36)),
     std::make_pair<QString, QColor>("gray15", QColor(38,38,38)),
     std::make_pair<QString, QColor>("grey15", QColor(38,38,38)),
     std::make_pair<QString, QColor>("gray16", QColor(41,41,41)),
     std::make_pair<QString, QColor>("grey16", QColor(41,41,41)),
     std::make_pair<QString, QColor>("gray17", QColor(43,43,43)),
     std::make_pair<QString, QColor>("grey17", QColor(43,43,43)),
     std::make_pair<QString, QColor>("gray18", QColor(46,46,46)),
     std::make_pair<QString, QColor>("grey18", QColor(46,46,46)),
     std::make_pair<QString, QColor>("gray19", QColor(48,48,48)),
     std::make_pair<QString, QColor>("grey19", QColor(48,48,48)),
     std::make_pair<QString, QColor>("gray20", QColor(51,51,51)),
     std::make_pair<QString, QColor>("grey20", QColor(51,51,51)),
     std::make_pair<QString, QColor>("gray21", QColor(54,54,54)),
     std::make_pair<QString, QColor>("grey21", QColor(54,54,54)),
     std::make_pair<QString, QColor>("gray22", QColor(56,56,56)),
     std::make_pair<QString, QColor>("grey22", QColor(56,56,56)),
     std::make_pair<QString, QColor>("gray23", QColor(59,59,59)),
     std::make_pair<QString, QColor>("grey23", QColor(59,59,59)),
     std::make_pair<QString, QColor>("gray24", QColor(61,61,61)),
     std::make_pair<QString, QColor>("grey24", QColor(61,61,61)),
     std::make_pair<QString, QColor>("gray25", QColor(64,64,64)),
     std::make_pair<QString, QColor>("grey25", QColor(64,64,64)),
     std::make_pair<QString, QColor>("gray26", QColor(66,66,66)),
     std::make_pair<QString, QColor>("grey26", QColor(66,66,66)),
     std::make_pair<QString, QColor>("gray27", QColor(69,69,69)),
     std::make_pair<QString, QColor>("grey27", QColor(69,69,69)),
     std::make_pair<QString, QColor>("gray28", QColor(71,71,71)),
     std::make_pair<QString, QColor>("grey28", QColor(71,71,71)),
     std::make_pair<QString, QColor>("gray29", QColor(74,74,74)),
     std::make_pair<QString, QColor>("grey29", QColor(74,74,74)),
     std::make_pair<QString, QColor>("gray30", QColor(77,77,77)),
     std::make_pair<QString, QColor>("grey30", QColor(77,77,77)),
     std::make_pair<QString, QColor>("gray31", QColor(79,79,79)),
     std::make_pair<QString, QColor>("grey31", QColor(79,79,79)),
     std::make_pair<QString, QColor>("gray32", QColor(82,82,82)),
     std::make_pair<QString, QColor>("grey32", QColor(82,82,82)),
     std::make_pair<QString, QColor>("gray33", QColor(84,84,84)),
     std::make_pair<QString, QColor>("grey33", QColor(84,84,84)),
     std::make_pair<QString, QColor>("gray34", QColor(87,87,87)),
     std::make_pair<QString, QColor>("grey34", QColor(87,87,87)),
     std::make_pair<QString, QColor>("gray35", QColor(89,89,89)),
     std::make_pair<QString, QColor>("grey35", QColor(89,89,89)),
     std::make_pair<QString, QColor>("gray36", QColor(92,92,92)),
     std::make_pair<QString, QColor>("grey36", QColor(92,92,92)),
     std::make_pair<QString, QColor>("gray37", QColor(94,94,94)),
     std::make_pair<QString, QColor>("grey37", QColor(94,94,94)),
     std::make_pair<QString, QColor>("gray38", QColor(97,97,97)),
     std::make_pair<QString, QColor>("grey38", QColor(97,97,97)),
     std::make_pair<QString, QColor>("gray39", QColor(99,99,99)),
     std::make_pair<QString, QColor>("grey39", QColor(99,99,99)),
    std::make_pair<QString, QColor>("gray40", QColor(102,102,102)),
    std::make_pair<QString, QColor>("grey40", QColor(102,102,102)),
    std::make_pair<QString, QColor>("gray41", QColor(105,105,105)),
    std::make_pair<QString, QColor>("grey41", QColor(105,105,105)),
    std::make_pair<QString, QColor>("gray42", QColor(107,107,107)),
    std::make_pair<QString, QColor>("grey42", QColor(107,107,107)),
    std::make_pair<QString, QColor>("gray43", QColor(110,110,110)),
    std::make_pair<QString, QColor>("grey43", QColor(110,110,110)),
    std::make_pair<QString, QColor>("gray44", QColor(112,112,112)),
    std::make_pair<QString, QColor>("grey44", QColor(112,112,112)),
    std::make_pair<QString, QColor>("gray45", QColor(115,115,115)),
    std::make_pair<QString, QColor>("grey45", QColor(115,115,115)),
    std::make_pair<QString, QColor>("gray46", QColor(117,117,117)),
    std::make_pair<QString, QColor>("grey46", QColor(117,117,117)),
    std::make_pair<QString, QColor>("gray47", QColor(120,120,120)),
    std::make_pair<QString, QColor>("grey47", QColor(120,120,120)),
    std::make_pair<QString, QColor>("gray48", QColor(122,122,122)),
    std::make_pair<QString, QColor>("grey48", QColor(122,122,122)),
    std::make_pair<QString, QColor>("gray49", QColor(125,125,125)),
    std::make_pair<QString, QColor>("grey49", QColor(125,125,125)),
    std::make_pair<QString, QColor>("gray50", QColor(127,127,127)),
    std::make_pair<QString, QColor>("grey50", QColor(127,127,127)),
    std::make_pair<QString, QColor>("gray51", QColor(130,130,130)),
    std::make_pair<QString, QColor>("grey51", QColor(130,130,130)),
    std::make_pair<QString, QColor>("gray52", QColor(133,133,133)),
    std::make_pair<QString, QColor>("grey52", QColor(133,133,133)),
    std::make_pair<QString, QColor>("gray53", QColor(135,135,135)),
    std::make_pair<QString, QColor>("grey53", QColor(135,135,135)),
    std::make_pair<QString, QColor>("gray54", QColor(138,138,138)),
    std::make_pair<QString, QColor>("grey54", QColor(138,138,138)),
    std::make_pair<QString, QColor>("gray55", QColor(140,140,140)),
    std::make_pair<QString, QColor>("grey55", QColor(140,140,140)),
    std::make_pair<QString, QColor>("gray56", QColor(143,143,143)),
    std::make_pair<QString, QColor>("grey56", QColor(143,143,143)),
    std::make_pair<QString, QColor>("gray57", QColor(145,145,145)),
    std::make_pair<QString, QColor>("grey57", QColor(145,145,145)),
    std::make_pair<QString, QColor>("gray58", QColor(148,148,148)),
    std::make_pair<QString, QColor>("grey58", QColor(148,148,148)),
    std::make_pair<QString, QColor>("gray59", QColor(150,150,150)),
    std::make_pair<QString, QColor>("grey59", QColor(150,150,150)),
    std::make_pair<QString, QColor>("gray60", QColor(153,153,153)),
    std::make_pair<QString, QColor>("grey60", QColor(153,153,153)),
    std::make_pair<QString, QColor>("gray61", QColor(156,156,156)),
    std::make_pair<QString, QColor>("grey61", QColor(156,156,156)),
    std::make_pair<QString, QColor>("gray62", QColor(158,158,158)),
    std::make_pair<QString, QColor>("grey62", QColor(158,158,158)),
    std::make_pair<QString, QColor>("gray63", QColor(161,161,161)),
    std::make_pair<QString, QColor>("grey63", QColor(161,161,161)),
    std::make_pair<QString, QColor>("gray64", QColor(163,163,163)),
    std::make_pair<QString, QColor>("grey64", QColor(163,163,163)),
    std::make_pair<QString, QColor>("gray65", QColor(166,166,166)),
    std::make_pair<QString, QColor>("grey65", QColor(166,166,166)),
    std::make_pair<QString, QColor>("gray66", QColor(168,168,168)),
    std::make_pair<QString, QColor>("grey66", QColor(168,168,168)),
    std::make_pair<QString, QColor>("gray67", QColor(171,171,171)),
    std::make_pair<QString, QColor>("grey67", QColor(171,171,171)),
    std::make_pair<QString, QColor>("gray68", QColor(173,173,173)),
    std::make_pair<QString, QColor>("grey68", QColor(173,173,173)),
    std::make_pair<QString, QColor>("gray69", QColor(176,176,176)),
    std::make_pair<QString, QColor>("grey69", QColor(176,176,176)),
    std::make_pair<QString, QColor>("gray70", QColor(179,179,179)),
    std::make_pair<QString, QColor>("grey70", QColor(179,179,179)),
    std::make_pair<QString, QColor>("gray71", QColor(181,181,181)),
    std::make_pair<QString, QColor>("grey71", QColor(181,181,181)),
    std::make_pair<QString, QColor>("gray72", QColor(184,184,184)),
    std::make_pair<QString, QColor>("grey72", QColor(184,184,184)),
    std::make_pair<QString, QColor>("gray73", QColor(186,186,186)),
    std::make_pair<QString, QColor>("grey73", QColor(186,186,186)),
    std::make_pair<QString, QColor>("gray74", QColor(189,189,189)),
    std::make_pair<QString, QColor>("grey74", QColor(189,189,189)),
    std::make_pair<QString, QColor>("gray75", QColor(191,191,191)),
    std::make_pair<QString, QColor>("grey75", QColor(191,191,191)),
    std::make_pair<QString, QColor>("gray76", QColor(194,194,194)),
    std::make_pair<QString, QColor>("grey76", QColor(194,194,194)),
    std::make_pair<QString, QColor>("gray77", QColor(196,196,196)),
    std::make_pair<QString, QColor>("grey77", QColor(196,196,196)),
    std::make_pair<QString, QColor>("gray78", QColor(199,199,199)),
    std::make_pair<QString, QColor>("grey78", QColor(199,199,199)),
    std::make_pair<QString, QColor>("gray79", QColor(201,201,201)),
    std::make_pair<QString, QColor>("grey79", QColor(201,201,201)),
    std::make_pair<QString, QColor>("gray80", QColor(204,204,204)),
    std::make_pair<QString, QColor>("grey80", QColor(204,204,204)),
    std::make_pair<QString, QColor>("gray81", QColor(207,207,207)),
    std::make_pair<QString, QColor>("grey81", QColor(207,207,207)),
    std::make_pair<QString, QColor>("gray82", QColor(209,209,209)),
    std::make_pair<QString, QColor>("grey82", QColor(209,209,209)),
    std::make_pair<QString, QColor>("gray83", QColor(212,212,212)),
    std::make_pair<QString, QColor>("grey83", QColor(212,212,212)),
    std::make_pair<QString, QColor>("gray84", QColor(214,214,214)),
    std::make_pair<QString, QColor>("grey84", QColor(214,214,214)),
    std::make_pair<QString, QColor>("gray85", QColor(217,217,217)),
    std::make_pair<QString, QColor>("grey85", QColor(217,217,217)),
    std::make_pair<QString, QColor>("gray86", QColor(219,219,219)),
    std::make_pair<QString, QColor>("grey86", QColor(219,219,219)),
    std::make_pair<QString, QColor>("gray87", QColor(222,222,222)),
    std::make_pair<QString, QColor>("grey87", QColor(222,222,222)),
    std::make_pair<QString, QColor>("gray88", QColor(224,224,224)),
    std::make_pair<QString, QColor>("grey88", QColor(224,224,224)),
    std::make_pair<QString, QColor>("gray89", QColor(227,227,227)),
    std::make_pair<QString, QColor>("grey89", QColor(227,227,227)),
    std::make_pair<QString, QColor>("gray90", QColor(229,229,229)),
    std::make_pair<QString, QColor>("grey90", QColor(229,229,229)),
    std::make_pair<QString, QColor>("gray91", QColor(232,232,232)),
    std::make_pair<QString, QColor>("grey91", QColor(232,232,232)),
    std::make_pair<QString, QColor>("gray92", QColor(235,235,235)),
    std::make_pair<QString, QColor>("grey92", QColor(235,235,235)),
    std::make_pair<QString, QColor>("gray93", QColor(237,237,237)),
    std::make_pair<QString, QColor>("grey93", QColor(237,237,237)),
    std::make_pair<QString, QColor>("gray94", QColor(240,240,240)),
    std::make_pair<QString, QColor>("grey94", QColor(240,240,240)),
    std::make_pair<QString, QColor>("gray95", QColor(242,242,242)),
    std::make_pair<QString, QColor>("grey95", QColor(242,242,242)),
    std::make_pair<QString, QColor>("gray96", QColor(245,245,245)),
    std::make_pair<QString, QColor>("grey96", QColor(245,245,245)),
    std::make_pair<QString, QColor>("gray97", QColor(247,247,247)),
    std::make_pair<QString, QColor>("grey97", QColor(247,247,247)),
    std::make_pair<QString, QColor>("gray98", QColor(250,250,250)),
    std::make_pair<QString, QColor>("grey98", QColor(250,250,250)),
    std::make_pair<QString, QColor>("gray99", QColor(252,252,252)),
    std::make_pair<QString, QColor>("grey99", QColor(252,252,252)),
    std::make_pair<QString, QColor>("gray100", QColor(255,255,255)),
    std::make_pair<QString, QColor>("grey100", QColor(255,255,255)),
    std::make_pair<QString, QColor>("dark grey", QColor(169,169,169)),
    std::make_pair<QString, QColor>("DarkGrey", QColor(169,169,169)),
    std::make_pair<QString, QColor>("dark gray", QColor(169,169,169)),
    std::make_pair<QString, QColor>("DarkGray", QColor(169,169,169)),
    std::make_pair<QString, QColor>("dark blue", QColor(0,0,139)),
    std::make_pair<QString, QColor>("DarkBlue", QColor(0,0,139)),
    std::make_pair<QString, QColor>("dark cyan", QColor(0,139,139)),
    std::make_pair<QString, QColor>("DarkCyan", QColor(0,139,139)),
    std::make_pair<QString, QColor>("dark magenta", QColor(139,0,139)),
    std::make_pair<QString, QColor>("DarkMagenta", QColor(139,0,139)),
    std::make_pair<QString, QColor>("dark red", QColor(139,0,0)),
    std::make_pair<QString, QColor>("DarkRed", QColor(139,0,0)),
    std::make_pair<QString, QColor>("light green", QColor(144,238,144)),
    std::make_pair<QString, QColor>("LightGreen", QColor(144,238,144)),
};

struct Comparator
{
    bool operator()(const QString& a, const QString& b)
    {
        return a.compare(b, Qt::CaseInsensitive) < 0;
    }
};

static std::map<
    QString,
    QColor,
    Comparator
            >colorDictionary(namedColors, namedColors + sizeof(namedColors)/sizeof(std::pair<QString, QColor>));

QColor nameToColor(const QString& name)
{
    auto it = colorDictionary.find(name);
    if (it != colorDictionary.end())
        return it->second;
    else
        return QColor();
}

} // namespace TurtleModule
